package com.example.everying.model.entity.feedback;/*
 * 项目名称: everything
 * 文件名: UserComplaints
 * 作者: 张泽阳
 * 日期: 2025/5/28
 * 描述:
 */

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "user_complaints")
public class UserComplaints {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 投诉内容
     */
    @ApiModelProperty(value = "投诉内容")
    @NotNull(message = "投诉内容不能为空")
    private String content;

    /**
     * 投诉人id
     */
    @ApiModelProperty(value = "投诉人id")
    @NotNull(message = "投诉人id不能为空")
    private String complainantId;

    /**
     * 被投诉人id
     */
    @ApiModelProperty(value = "被投诉人id")
    @NotNull(message = "被投诉人id不能为空")
    private String respondentId;

    @ApiModelProperty(value = "投诉时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
